package ooday02;

public class ExtendsTest {
    public static void main(String[] args) {
        Teacher t = new Teacher("YiYi",18,"H","老师",1);
        t.sayHi();
        t.eat();
        t.sleep();
        t.teach();

        Student s = new Student("YiYi",18,"H","同学",1,"翻斗花园5班");
        s.sayHi();
        s.eat();
        s.sleep();
        s.study();

        Doctor d = new Doctor("YiYi",18,"H","医生","主治医师");
        d.sayHi();
        d.eat();
        d.sleep();
        d.heal();

        Person e = new Student("YiYi",18,"H","同学",1,"翻斗花园5班");


//        Boo b = new Boo();
    }
}
/*
class Aoo{
    Aoo(){
        System.out.println("父类");
    }
}
class Boo extends Aoo{
    Boo(){
        System.out.println("子类");
    }

}
*/